<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'

// 应用生命周期
onLaunch(() => {
	console.log('App Launch')

	// 检查登录状态
	const token = uni.getStorageSync('token')
	if (token) {
		console.log('用户已登录')
	} else {
		console.log('用户未登录')
	}
})

onShow(() => {
	console.log('App Show')
})

onHide(() => {
	console.log('App Hide')
})
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/styles/uview-plus.scss";
	uni-image, .uni-preview-image {
		z-index: 99999 !important;
	}
	
	.uni-preview-image-wrapper {
		z-index: 99999 !important;
	}
</style>
